package com.example;

import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.*;

/**
 * Created by IntelliJ IDEA.
 * User: isen
 * Date: 01/02/12
 * Time: 12:36
 * To change this template use File | Settings | File Templates.
 */
public class ScoreShow  extends Activity {

    ListView lvListe;

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.scoreshow);


        ScoreBDD bdd = new ScoreBDD(this);
        bdd.open();
        Cursor c = bdd.getCursor();

        lvListe = (ListView) findViewById(R.id.lvliste);

    lvListe.setAdapter(new SimpleCursorAdapter(this, android.R.layout.simple_list_item_1, c, new String[]{BaseDeDonnees.COL_Score}, new int[]{android.R.id.text1}));



        LinearLayout linearLayout = (LinearLayout) findViewById(R.id.linear);


        bdd.close();
    }
}
